package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PinkoCurrencyMapper;
import com.ruoyi.system.domain.PinkoCurrency;
import com.ruoyi.system.service.IPinkoCurrencyService;

/**
 * 币种信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-07
 */
@Service
public class PinkoCurrencyServiceImpl implements IPinkoCurrencyService 
{
    @Autowired
    private PinkoCurrencyMapper pinkoCurrencyMapper;

    /**
     * 查询币种信息
     * 
     * @param id 币种信息主键
     * @return 币种信息
     */
    @Override
    public PinkoCurrency selectPinkoCurrencyById(Long id)
    {
        return pinkoCurrencyMapper.selectPinkoCurrencyById(id);
    }

    /**
     * 查询币种信息列表
     * 
     * @param pinkoCurrency 币种信息
     * @return 币种信息
     */
    @Override
    public List<PinkoCurrency> selectPinkoCurrencyList(PinkoCurrency pinkoCurrency)
    {
        return pinkoCurrencyMapper.selectPinkoCurrencyList(pinkoCurrency);
    }

    /**
     * 新增币种信息
     * 
     * @param pinkoCurrency 币种信息
     * @return 结果
     */
    @Override
    public int insertPinkoCurrency(PinkoCurrency pinkoCurrency)
    {
        return pinkoCurrencyMapper.insertPinkoCurrency(pinkoCurrency);
    }

    /**
     * 修改币种信息
     * 
     * @param pinkoCurrency 币种信息
     * @return 结果
     */
    @Override
    public int updatePinkoCurrency(PinkoCurrency pinkoCurrency)
    {
        return pinkoCurrencyMapper.updatePinkoCurrency(pinkoCurrency);
    }

    /**
     * 批量删除币种信息
     * 
     * @param ids 需要删除的币种信息主键
     * @return 结果
     */
    @Override
    public int deletePinkoCurrencyByIds(Long[] ids)
    {
        return pinkoCurrencyMapper.deletePinkoCurrencyByIds(ids);
    }

    /**
     * 删除币种信息信息
     * 
     * @param id 币种信息主键
     * @return 结果
     */
    @Override
    public int deletePinkoCurrencyById(Long id)
    {
        return pinkoCurrencyMapper.deletePinkoCurrencyById(id);
    }
}
